Skip to content

Conversation

@jianyizh
Copy link
Contributor

I'm doing some benchmarks in pytorch and I find this benchmark always record the time of flush cache kernel. I want to add a sync in each iteration before kernel start. Pytorch calls this function here: https://github.com/pytorch/pytorch/blob/main/torch/_inductor/runtime/benchmarking.py#L176

@whitneywhtsang
Copy link
Contributor

Side note: wall time measurements could be inaccurate.

@etiotto etiotto requested a review from alexbaden October 18, 2024 13:15
Copy link
Contributor

@alexbaden alexbaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@whitneywhtsang whitneywhtsang merged commit b4043cf into intel:main Oct 18, 2024
4 checks passed
@jianyizh jianyizh deleted the jianyi/do_bench branch November 18, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Profiling] add a sync after flush cache when doing benchmark

4 participants